package com.wf.pattern.observer.demo;

/**
 * 功能描述
 *
 * @since 2021/10/30
 */
public class StudentListener implements Listener{
    @Override
    public void handleRing(RingEvent ringEvent) {
        if (ringEvent.isSound()) {
            System.out.println("student hear the bell ring, class begins");
        } else {
            System.out.println("student hear the bell ring, class end");
        }

    }
}
